package com.example.springboottest.controller;

import com.example.springboottest.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Test")
public class TestController {
    @Autowired
    private TestService testService;
    @RequestMapping("/Hello")
    public String index(String word){
        return  testService.Test(word);
    }
}
